package com.hmall.api.client;

import com.hmall.api.client.fallback.TradeClientFallbackFactory;
import com.hmall.api.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author 宛远鸿
 * @version 1.0
 */
@FeignClient(value = "trade-service",configuration = DefaultFeignConfig.class,fallbackFactory = TradeClientFallbackFactory.class)
public interface TradeClient {
    @PutMapping("/orders/{orderId}")
     void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}
